package com.ply.flashsalessystem.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ply.flashsalessystem.entity.pojo.ReturnOfGoodsDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ply.flashsalessystem.entity.vo.user.ReturnOrderVo;
import com.ply.flashsalessystem.entity.wrapper.WrapperOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author XiaoPan
 * @since 2022-03-23
 */
@Mapper
public interface ReturnOfGoodsDetailsMapper extends BaseMapper<ReturnOfGoodsDetails> {

    int updateStatus(@Param("rogDId") Integer rogDId,
                         @Param("status") Integer status,
                         @Param("manageId")Long manageId);

    List<ReturnOfGoodsDetails> queryByRogId(@Param("rogId")Integer rogId);

    Page<ReturnOrderVo> queryReturn(Page<Object> objectPage, @Param("wr") WrapperOrder wrapperOrder);

    Page<ReturnOrderVo> queryReOrderDetailsByRodId(Page<Object> objectPage,@Param("roId") Integer roId);
}
